projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1c3f343
)
x11: Fix wrong condition when unsetting transient-for
author
Timm Bäder
<mail@baedert.org>
Tue, 19 Dec 2017 10:53:31 +0000
(11:53 +0100)
committer
Timm Bäder
<mail@baedert.org>
Thu, 21 Dec 2017 17:25:51 +0000
(18:25 +0100)
Setting a new transient-for parent is only possible if the given parent
window is valid, not when it is NULL or valid.
gdk/x11/gdkwindow-x11.c
patch
|
blob
|
history
diff --git
a/gdk/x11/gdkwindow-x11.c
b/gdk/x11/gdkwindow-x11.c
index c6d6e30f7bcdc446679cba98476194640f173017..9300fed6d0ec7434f86eefa5481365e5417b3648 100644
(file)
--- a/
gdk/x11/gdkwindow-x11.c
+++ b/
gdk/x11/gdkwindow-x11.c
@@
-2453,7
+2453,7
@@
gdk_x11_window_set_transient_for (GdkWindow *window,
return;
/* XSetTransientForHint() doesn't allow unsetting, so do it manually */
- if (
!parent ||
!GDK_WINDOW_DESTROYED (parent))
+ if (
parent &&
!GDK_WINDOW_DESTROYED (parent))
XSetTransientForHint (GDK_WINDOW_XDISPLAY (window),
GDK_WINDOW_XID (window),
GDK_WINDOW_XID (parent));